package com.zx.ymy.net

import com.zx.ymy.base.BaseResponse


class ResponseException(private val response: BaseResponse<*>) : Exception(response.msg) {

    override val message: String?
        get() = super.message

    val errorCode: Int?
        get() = response.code.toInt()
}